using System.ComponentModel.DataAnnotations;
using Localization;
using SinBiota.Model.Entities.CustomAttributes;

namespace SinBiota.Model.Entities
{
    [LocalizedName("Institution", NameResourceType = typeof(Strings))]
    public class Institution : BaseEntity 
    {
        [LocalizedName("Name", NameResourceType = typeof(Strings))]
        [Required(ErrorMessageResourceType = typeof(Messages), ErrorMessageResourceName = "FieldCannotBeEmpty")]
        [StringLength(128, ErrorMessageResourceType = typeof(Messages), ErrorMessageResourceName = "ExceedsMaxFieldSize")]
        public virtual string Name { get; set; }

        [LocalizedName("Address", NameResourceType = typeof(Strings))]
        [Required(ErrorMessageResourceType = typeof(Messages), ErrorMessageResourceName = "FieldCannotBeEmpty")]
        public virtual string Address { get; set; }

    }

}
